﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
    <link href="css/admin_css/reset.css" rel="stylesheet"/>
    <link href="css/admin_css/iconfont.css" rel="stylesheet"/>
    <link href="css/admin_css/index.css" rel="stylesheet"/>
    <script src="js/admin_js/jquery-1.9.1.min.js"></script>
    <script src="js/admin_js/f.js"></script>
    <script src="js/admin_js/AdminManagement.js"></script>
    <title>管理员管理</title>
</head>
<body>
<div class="PublicHead clearfix">
    <div class="leftBox clearfix">
        <div class="companyLogo">
            <img src="images/admin_images/logo.jpg"/>
        </div>
        <!--<i class="iconfont icon-caidan Js_MenuList"></i>-->

        <div class="companyText">
            给力百管理系统
        </div>
    </div>
    <div class="RightBox clearfix">
        <div class="UserPhotoBox">
            <div class="UserPic">
                <img src="images/admin_images/user.jpg"/>
            </div>
            <div class="UserName">
                管理员
            </div>
        </div>
        <a href="/admin/adminLoginPage">
            <div class="dropOutBox">
                <i class="iconfont icon-app_icons--">
                </i>
                <span>退出</span>
            </div>
        </a>
    </div>
</div>

<div class="PublicDownWhole clearfix">
    <!--左侧-->
    <div class="leftBox Js_leftBox">
        <ul>
            <a href="/admin/adminManagementPage">
                <li class="Select"><i class="iconfont icon-yonghuguanli"></i><span>用户管理</span></li>
            </a>
            <a href="/admin/adminOrderManagementPage">
                <li><i class="iconfont icon-tubiao_dingdan"></i><span>订单管理</span></li>
            </a>
            <a href="/admin/adminClassificationManagementPage">
                <li><i class="iconfont icon-fenlei"></i><span>分类管理</span></li>
            </a>
            <a href="/admin/adminProductManagementPage">
                <li><i class="iconfont icon-weibiaoti1"></i><span>产品管理</span></li>
            </a>
        </ul>
    </div>
    <!--右侧-->
    <div class="RightBox Js_RightBox">
        <div class="PublicContentBox">
            <!--公用指向页面名字-->
            <div class="PublicPointToAgeText">
                <span class="span1">管理员管理</span> <span class="span2">后台管理员管理列表</span>
            </div>
            <!--查询-->
            <div class="InquireBox clearfix">
                <div class="InquireleftBox">
                    <div class="Text">手机号：</div>
                    <div class="InputDiv"><input class="phoneInput" placeholder="请输入你需要查询的手机号"/></div>
                </div>
                <div class="PublicBtnIcon Color1Btn fr">
                    <i class="iconfont icon-icon-chaxun"></i>
                    <span>查询</span>
                </div>
            </div>
            <!--表修改-->
            <div class="InquireTableBox">
                <div class="headbox">
                    <div class="headboxtext">
                        <span class="span1">后台管理员管理列表</span>
                    </div>
                    <!--批量删除-->
                    <div class="PublicBtnIcon Color5Btn">
                        <i class="iconfont  icon-shanchu"></i>
                        <span>批量删除</span>
                    </div>

                    <div class="PublicBtnIcon Color2Btn fr Js_edit">
                        <i class="iconfont icon-changyongtubiao-mianxing-"></i>
                        <span>添加</span>
                    </div>
                </div>

                <!--查询到的表格-->

                <div class="InquireSelectTable">
                    <table class="PublicTableCss">
                        <thead>
                        <tr>
                            <td>
                                <input id="inputcheck" class="inputcheck" type="checkbox" name="inputcheck"/>
                                <label for="inputcheck"></label>
                                <span>全选</span>
                            </td>
                            <td>ID</td>
                            <td>用户名</td>
                            <td>操作</td>
                        </tr>

                        </thead>
                        <tbody class="JS_ShowAdmin">

                        </tbody>
                    </table>

                </div>
                <!--分页-->
                <div class="PageNumber">
                    <div class="NumbersBox">
                        <div class="LeftArrow">
                            上一页
                        </div>
                        <ul>
                            <li class="Select">1</li>
                            <li class="">2</li>
                            <li class="">...</li>
                            <li class="">4</li>
                            <li class="">5</li>
                        </ul>
                        <div class="RightArrow ">
                            下一页
                        </div>
                    </div>
                </div>


            </div>
        </div>

    </div>
</div>


<!-- alert通用 提示是否删除-->
<div class="PublicFloatBox f_delete">
    <div class="f_MiddleBox wid260">
        <div class="f_Head">
            <span>提示消息</span>
            <i class="Js_closeBtn iconfont icon-buoumaotubiao20 fr"></i>
        </div>
        <div class="f_content clearfix">
            <!--提示消息内容-->
            <div class="f_someText">
                <i class="iconfont icon-tishi"></i>
                <span>确定删除此信息？</span>
            </div>
            <!--按钮-->
            <div class="f_pormatBtn  clearfix">
                <div class="f_pormatBtn1">
                    确定
                </div>
                <div class="f_pormatBtn2">
                    删除
                </div>
            </div>
        </div>
    </div>
</div>
<!--添加用户浮层-->
<div class="PublicFloatBox adduser">
    <div class="f_MiddleBox wid400">
        <div class="f_Head">
            <span>添加管理员</span>
            <i class="Js_closeBtn iconfont icon-buoumaotubiao20 fr"></i>
        </div>
        <div class="f_content">
            <form action="/admin/addAdmin" id="admin_add" method="post">
                <div class="f_alonediv">
                    <div class="f_alone_name">
                        管理员名:
                    </div>
                    <div class="f_alone_input">
                        <input id="admin_name" class="f_p_input" type="text"/>
                    </div>
                    <!--提示消息-->
                    <div class="f_pormat">
                        请输入管理员名
                    </div>
                </div>
                <div class="f_alonediv">
                    <div class="f_alone_name">
                        密码:
                    </div>
                    <div class="f_alone_input">
                        <input id="admin_password" class="f_p_input" type="text"/>
                    </div>
                    <!--提示消息-->
                    <div class="f_pormat">
                        请输入密码
                    </div>
                </div>
                <div class="f_alonediv1">
                    <div class="f_alone_name">
                    </div>
                    <div class="f_alone_input1">
                        <!--publicbtn-->
                        <div class="publicf_btn">
                            <div class="publicf_btn1">
                                <input type="submit" value="添加">
                            </div>
                            <div class="publicf_btn2 fr Js_closeBtn">
                                取消
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<!--返回顶部-->
<a href="javaScript:void();" class="back-to-top"><i class="iconfont icon-fanhuidingbu"></i> </a>
<script>
    $("#admin_add").submit(function () {
        var adminName = $("#admin_name").val();
        var password = $("#admin_password").val();
        console.log(adminName)
        $.ajax({
            url: "addAdmin",
            data: {"adminName": adminName, "password": password},
            type: "post",
            success: function (data) {
                alert(data.msg);
                //$("#msg").text(data.msg);
                window.location.href = "/admin/adminManagementPage";
            }
        })
        return false;
    })
</script>
</body>
</html>